package com.study.config;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class TestJob1 implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("我是新任务，我正在执行。。。");
		//获取任务创建时传递的数据信息
		JobDataMap dataMap = context.getMergedJobDataMap();
		
		System.out.println(dataMap.get("desc") + ":" + dataMap.get("name"));
	}

}
